package com.ruoyi.auth.service;

import com.ruoyi.auth.feign.SystemFeignClient;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    private final SystemFeignClient systemFeignClient;

    @Autowired
    public UserService(SystemFeignClient systemFeignClient) {
        this.systemFeignClient = systemFeignClient;
    }

    public R<?> fetchUsers(String username) {
        return systemFeignClient.getUserList(username, 1, 10);
    }
}
